function changecode(){
	
	document.getElementById("code").src="CheckCodeServlet?r"+new Date();

}

function checkaccount(){
	var account=document.getElementById("account");
	var accounthint=document.getElementById("accounthint");
	if(account.value==""){
		accounthint.innerText="账号不能为空";
		return false
	}else{
		accounthint.innerText="√";
		return true
	}

}
function checkpwd(){
	var password=document.getElementById("password");
	var passwordhint=document.getElementById("pwdhint");
	if(password.value==""){
		passwordhint.innerText="密码不能为空";
		return false
	}else{
		passwordhint.innerText="√";
		return true
	}
	
}

function checkall(){
	
	if (checkname()==true&checkpwd()==true){
		
		return true;
		
	}else{
		alert("请按要求填写");
		return false;
	}
}